home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Add-Ons / MicroPhone / Open Mike™ / Open Mike™ 009 / Mike's Folder / Tips & Tricks < prev    next >
Encoding:
Text File  |  1993-09-01  |  2.0 KB  |  34 lines  |  [TEXT/ttxt]

  1. Tips & Tricks
  2. =============
  3. Copyright © 1993 by Celestin Company
  4. All rights reserved.
  5.  
  6. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from the publisher. However, you are permitted to make copies of this work, printed or otherwise, as long as said copies are for your personal use only.
  7.  
  8. Introduction
  9. ------------
  10. If you've got a tip or a trick that you think would benefit other Open Mike readers, please share it with us. Readers whose tip or trick we use will receive a free issue of Open Mike. Such a deal!
  11.  
  12. Appending to an Existing Text File
  13. ----------------------------------
  14. If you peruse lots of different information services and have the need to "clip" some of the information, you might want to try using a clipping file. Create the following script and assign it to a menu or button in your settings document. Then, whenever you want to save some pertinent information, just select it and run the script. It will save the selection to a text file, appending it to the end if the file already exists.
  15.  
  16. Set Variable * fname from Expression "SettingsPath & 'clipping file'"
  17. If Expression "FileLen(fname) > 0"
  18.   Selection * Append "fname"
  19. Else
  20.   Selection * Save "fname"
  21. End If
  22. Delete Variable fname
  23.  
  24. Who Created You?
  25. ----------------
  26. To quickly find out the TYPE and CREATOR for a file, simply choose Send from the Transfer menu in MicroPhone. Then, choose a protocol such as XMODEM MacBinary. Select the file and click the Send button. The Send will not occur, but the progress box will tell you the TYPE and CREATOR, as well as the length of the file.
  27.  
  28. Variables, What Variables?
  29. --------------------------
  30. To quickly determine the names of all the variables that are currently being used, try the following one line script:
  31.  
  32. Send Local to Screen "ListToString(ListVariables,'^M^J')"
  33.  
  34. This will give you a quick glance at your world, as well as tell you if you are currently using a certain variable name.